import request from '@/utils/request'

// 查询限时购场次列表
export function listFlashPromotionSession(query) {
  return request({
    url: '/sms/flashPromotionSession/list',
    method: 'get',
    params: query
  })
}

// 查询限时购场次详细
export function getFlashPromotionSession(id) {
  return request({
    url: '/sms/flashPromotionSession/' + id,
    method: 'get'
  })
}

// 新增限时购场次
export function addFlashPromotionSession(data) {
  return request({
    url: '/sms/flashPromotionSession',
    method: 'post',
    data: data
  })
}

// 修改限时购场次
export function updateFlashPromotionSession(data) {
  return request({
    url: '/sms/flashPromotionSession',
    method: 'put',
    data: data
  })
}

// 删除限时购场次
export function delFlashPromotionSession(id) {
  return request({
    url: '/sms/flashPromotionSession/' + id,
    method: 'delete'
  })
}

// 导出限时购场次
export function exportFlashPromotionSession(query) {
  return request({
    url: '/sms/flashPromotionSession/export',
    method: 'get',
    params: query
  })
}